package com.dimples.wxpush.constant;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

/**
 * 常量类，数据来自于application.yml的配置，在代码中使用
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/11/15
 */
@Setter
@Getter
@ToString
@Component
@ConfigurationProperties(prefix = "qy-wx.config")
public class QiYeWxConfigConstant {
    @Value("${qy-wx.config.corpid}")
    public String corpid;
    @Value("${qy-wx.config.corpsecret}")
    public String corpsecret;
    @Value("${qy-wx.config.agentId}")
    public String agentId;


    @Value("${qy-wx.config.callable.token}")
    public String callableToken;


    @Value("${qy-wx.config.callable.encoding_aes_key}")
    public String callableEncodingAesKey;

    @Value("${weather.config.appid}")
    public String weatherAppId;

    @Value("${weather.config.appSecret}")
    public String weatherAppSecret;
    @Value("${weather.config.city}")
    public String city;
    @Value("${weather.config.cityDesc}")
    public String cityDesc;
    @Value("${message.config.lunarSwitch}")
    public Boolean lunarSwitch;
    @Value("${message.config.togetherDate}")
    public String togetherDate;
    @Value("${message.config.birthday1}")
    public String birthday1;
    @Value("${message.config.birthday2}")
    public String birthday2;

    @Value("${message.config.message}")
    public String message;
    @Value("${ApiSpace.enableDaily}")
    private boolean enableDaily = true;
    @Value("${ApiSpace.token}")
    public String token;

    @Value("${youdao.appKey_YouDao}")
    public String appKey_YouDao;

    @Value("${youdao.appSecret_YouDao}")
    public String appSecret_YouDao;


}
